<!DOCTYPE html>
<!--[if lt IE 7 ]><html class="ie ie6"> <![endif]-->
<!--[if IE 7 ]><html class="ie ie7"> <![endif]-->
<!--[if IE 8 ]><html class="ie ie8"> <![endif]-->
<!--[if (gte IE 9)|!(IE)]><!--><html> <!--<![endif]-->
<head>
<#include "/pages/templet/head.html"/>
<SCRIPT type="text/javascript">
	var setting = {
		data: {
			simpleData: {
				enable: true
			}
		},
		callback: {
			onExpand: function(){
				if (treeNiceScroll) {
					treeNiceScroll.resize();
				}
			}
		},
		view: {
			showLine: false
		}
	};
	var zNodes1 =[
		{ id:1, pId:0, name:"数据库链接", open:true, icon:"/assets/images/icon-file-closed.png"}
		<#if databaseList??>
		<#list databaseList as db>
		,{ id:'${db.id!''}', pId:1,name:"<#if db.connctiontype??&&db.connctiontype=='jdbc'>${db.name!''}(jdbc)<#elseif db.connctiontype??&&db.connctiontype=='jndi'>${db.jndiname!''}(jndi)</#if>", open:<#if dbid == db.id>true<#else>false</#if>,url:"/${orgi}/dm/database/databasecube/${db.id!''}.html",target:"_self", icon:"/assets/images/<#if db.databasetype??&&db.databasetype == 'oracle'>imgIco-101<#elseif db.databasetype??&&db.databasetype == 'mysql'>imgIco-100<#elseif db.databasetype??&&db.databasetype == 'sqlserver'>imgIco-102<#elseif db.databasetype??&&db.databasetype == 'rivues'>imgIco-10<#else>imgIco-13</#if>.png"}
		</#list>
		</#if>
	];
	$(document).ready(function(){
		var ztree = $.fn.zTree.init($(document.getElementById("zTree_adminLIst")), setting, zNodes1);
		ztree.selectNode(ztree.getNodeByParam("id", "${dbid!''}", null));
	});
</SCRIPT>
</head>
<body>
<div class="container rs_layout" wrapper="true">
	<div class="rs_layout_top breadCrumbWrap">
		<div class="breadCrumbStart">您当前的位置是在：</div>
		<ul class="breadCrumb">
			<li class="bc_ithems"><a href="/${orgi}/dm/index.html">数据模型管理</a></li>
			<li class="bc_ithems"><a href="/${orgi}/dm/database/index.html">数据库连接</a></li>
			<#if database??>
			<li class="bc_ithems"><a href="/${orgi}/dm/database/${database.id!''}/database.html">${database.name!''}</a></li>
			</#if>
		</ul>
	</div>
	<div class="rs_layout_left" resizable="true" style="width:230px;">
		<div class="lftTreeWrap">
			<div class="ztree" id="zTree_adminLIst"></div>
		</div>
	</div>
	<div class="rs_layout_center">
		<div class="rs_layout">
			<div class="rs_layout_center"> 
				<div class="tableScrollWrap">
				<form id="cubeform" action="" method="post">
				<input id="dicid" type="hidden" name="dicid" value=""/>
					<table class="table_style_1">
						<thead>
							<tr>
								<th></th>
								<th><i class="verMidWrap">名称</i><i class="tbArrow"></i></th>
								<th class="minSize"><i class="verMidWrap">数据结算</i><i class="tbArrow"></i></th>
								<th class="minSize"><i class="verMidWrap">结算时间</i><i class="tbArrow"></i></th>
								<th class="minSize"><i class="verMidWrap">结算版本</i><i class="tbArrow"></i></th>
								<th class="minSize"><i class="verMidWrap">类型</i><i class="tbArrow"></i></th>
								<th class="minSize"><i class="verMidWrap">创建时间</i><i class="tbArrow"></i></th>
								
								<th class="minSize"><i class="verMidWrap">版本</i><i class="tbArrow"></i></th>
							</tr>
						</thead>
						<tbody>
							<#if cubes??>
							<#list cubes as cube>
							<tr>
								<td class="tdIcons"><input value="${cube.id!''}" name="cubeids" type="checkbox"></td>
								<td><a href="/${orgi}/dm/cube/cubedesign/${cube.id!''}.html"><i class="icons_tablelist_1"></i>${cube.name!""}</a></td>
								<td class="minSize"><#if cube.createdata?? && cube.createdata == "true">已结算</#if></td>
								<td class="minSize"><#if cube.createdata?? && cube.createdata == "true">${cube.startdate?string("yyyy-MM-dd HH:mm:ss")}</#if></td>
								<td class="minSize"><#if cube.createdata?? && cube.createdata == "true">${cube.dataflag!'0'}</#if></td>
								<td class="minSize"><#if cube.dstype == "cube">立方体<#elseif cube.dstype == "table">数据表<#else>R3 rivuES</#if></td>
								<td class="minSize">${cube.createtime?string('yyyy-MM-dd HH:mm:ss')}</td>
								<td class="minSize">V3</td>
							</tr>
							</#list>
							</#if>
						</tbody>
					</table>
					</form>
				</div>
			</div>
		</div>
	</div>
</div>
</body>
</html>